#include "StdAfx.h"
#include "control_factory.h"
#include "ctl_backcloth.h"
#include "ctl_chat_view.h"
#include "ctl_text_box.h"

control_factory::ControlMap control_factory::m_ctlMap;
static control_factory cf;

#define REG_CTL(className)\
	regist_control(L###className, alloc_ctl<className>)
control_factory::control_factory(void)
{
	//regist_control(L"control", alloc_ctl<control>);
	REG_CTL(control);
	REG_CTL(image_button);
	REG_CTL(panel);
	REG_CTL(label);
	REG_CTL(color_panel);
	REG_CTL(picture);
	REG_CTL(picture_frame);
	REG_CTL(backcloth);
	REG_CTL(chat_view);
	REG_CTL(text_box);
	//REG_CTL()
}

control_factory::~control_factory(void)
{
}

//REG_CTL(control);